import { routes, resetRouter } from '@/router'
export default {
  namespaced: true,
  state: {
    menuList: [...routes]
  },
  mutations: {
    setMenuList(state, asyncRoutes) {
      state.menuList = [...routes, ...asyncRoutes]
    },
    resetRoute(state) {
      resetRouter()
      state.menuList = [...routes]
    }
  }
}
